AMD/IOMMU: avoid UB in guest CR3 retrieval
authorJan Beulich <jbeulich@suse.com>
Fri, 20 Nov 2020 07:28:58 +0000 (08:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Nov 2020 07:28:58 +0000 (08:28 +0100)
commit846d22d54f24f336fb80d052338e0cd030d54fee
tree6e442499e68a004e0bd7cfd4a1483ea3d101399b
parentdee7d981b99435b6c37126821af7826bd9a9d36c
AMD/IOMMU: avoid UB in guest CR3 retrieval

Found by looking for patterns similar to the one Julien did spot in
pci_vtd_quirks(). (Not that it matters much here, considering the code
is dead right now.)

Fixes: 3a7947b69011 ("amd-iommu: use a bitfield for DTE")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/passthrough/amd/iommu_guest.c